//
//  NSString+DecimalNumber.m
//  shendianneng
//
//  Created by 李叶夫 on 2018/7/19.
//  Copyright © 2018年 SDN. All rights reserved.
//

#import "NSString+DecimalNumber.h"

@implementation NSString (DecimalNumber)

+ (NSString *)decimalNumberWithDouble:(double)value
{
    NSString *doubleString = [NSString stringWithFormat:@"%lf",value];
    NSDecimalNumber *decNumber = [NSDecimalNumber decimalNumberWithString:doubleString];
    return [decNumber stringValue];
}

@end
